#ifndef TCICHILD_H
#define TCICHILD_H

#include <QTextEdit>

#include "../JWTS/INCLUDE/MdiChild.h"
#include "JWWS_global.h"

class JWWS_EXPORT TCIChild : public QTextEdit, public MdiChild
{
public:
    explicit TCIChild(const char *p_name, QWidget* parent = nullptr);

protected:
    bool event(QEvent *event) override;
    void keyPressEvent(QKeyEvent *e) override;
    void mousePressEvent(QMouseEvent *e) override;
    void closeEvent(QCloseEvent *event) override;

private:
    void emitCursorPosition();
};

#endif // TCICHILD_H
